package com.hjf.dao.impl;

import java.util.List;

import com.commons.po.CustomerRole;
import com.commons.po.RoleMenu;
import com.dao.BaseDao;
import com.hjf.dao.RoleMenuDao;

public class RoleMenuDaoImpl extends BaseDao<RoleMenu> implements RoleMenuDao {

	@Override
	public List<RoleMenu> findAllRoleMenu() {
		String sql="select * from role_menu";
		return this.executeQuery(sql, null, RoleMenu.class, null);
	}

	@Override
	public List<RoleMenu> findByRoleId(Integer roleId) {
		String sql="select * from role_menu where role_id=?";
		Object[] paramsObjs={roleId};
		return this.executeQuery(sql, null, RoleMenu.class, paramsObjs);
	}

}
